<%@ include file="/common/taglibs.jsp"%>

<form method="post" id="loginForm" action="<c:url value="/j_security_check"/>"
    onsubmit="saveUsername(this);return validateForm(this)">
    

<table>
<c:if test="${param.error != null}">
<tr height=100>
<td colspan=2>
        <img src="<c:url value="/images/iconWarning.gif"/>"
            alt="<fmt:message key="icon.warning"/>" class="icon" />
        <fmt:message key="errors.password.mismatch"/>
        <!--<c:out value="${sessionScope.ACEGI_SECURITY_LAST_EXCEPTION.message}"/>-->
</td>
</tr>
</c:if>
<tr  height=100><td>&nbsp;</td></tr>
<tr  height=100><td>&nbsp;</td></tr>
<tr>
<td>
       <label for="j_username" class="desc">
            <fmt:message key="label.username"/> :
        </label>
</td><td>         
        <input type="text" class="text medium" name="j_username" id="j_username" tabindex="1" />
</td>
</tr>
<tr>
<td>
        <label for="j_password" class="desc">
            <fmt:message key="label.password"/> :
        </label>
</td><td>        
        <input type="password" class="text medium" name="j_password" id="j_password" tabindex="2" onkeydown="if(event.keyCode==13) loginForm.submit()"/>
</td>
</tr>
<tr>
<td colspan=2 align=center>
        <input type="submit" class="button" name="login" value="<fmt:message key="button.login" />" tabindex="4"  />

</td>
</tr>
</table>
</form>

<%@ include file="/scripts/login.js"%>
